import { request } from '@/utils'

export const getUserInfo = () => {
  return async (dispatch, getState) => {
    const res = await request.get('/user/profile')
    // console.log('用户信息', res)
    dispatch({ type: 'user/getUserInfo', payload: res.data.data })
  }
}
